const columns = [
  {
    title: '封面',
    dataIndex: 'cover',
    key: '',
    slots: { customRender: 'thumb' }
  },
  {
    title: '标题',
    dataIndex: 'title',
    key: 'id',
    // width: 150
    ellipsis: true
  },
  {
    title: '状态',
    dataIndex: 'status',
    key: 'id',
    width: 80,
    slots: { customRender: 'status' }
  },
  {
    title: '发布时间',
    dataIndex: 'pubdate',
    key: 'id',
    width: 180
  },

  {
    title: '操作',
    dataIndex: '',
    key: 'id',
    width: 180,
    slots: { customRender: 'setting' }
  }
]
const routes = [
  {
    path: 'index',
    breadcrumbName: 'First-level Menu'
  },
  {
    path: 'first',
    breadcrumbName: 'Second-level Menu'
  },
  {
    path: 'second',
    breadcrumbName: 'Third-level Menu'
  }
]

const types = [
  { status: null, name: '全部' },
  { status: 0, name: '草稿' },
  { status: 1, name: '待审核' },
  { status: 2, name: '审核通过' },
  { status: 3, name: '审核失败' },
  { status: 4, name: '已删除' }
]

const status = {
  0: { name: '草稿', color: 'pink' },
  1: { name: '待审核', color: '#87d068' },
  2: { name: '审核通过', color: '#108ee9' },
  3: { name: '审核失败', color: '#f50' },
  4: { name: '已删除', color: '#3333' }
}

export { columns, types, routes, status }
